package com.ruoyi.eamp.service.impl;

import java.util.List;

import com.ruoyi.eamp.domain.vo.DutyVo;
import com.ruoyi.eamp.domain.vo.ListAndManageVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eamp.mapper.EampDutyListMapper;
import com.ruoyi.eamp.domain.EampDutyList;
import com.ruoyi.eamp.service.IEampDutyListService;

/**
 * 值班表Service业务层处理
 *
 * @author ruoyi
 * @date 2024-08-08
 */
@Service
public class EampDutyListServiceImpl implements IEampDutyListService
{
    @Autowired
    private EampDutyListMapper eampDutyListMapper;

    /**
     * 查询值班表
     *
     * @param dutyId 值班表主键
     * @return 值班表
     */
    @Override
    public EampDutyList selectEampDutyListByDutyId(Long dutyId)
    {
        return eampDutyListMapper.selectEampDutyListByDutyId(dutyId);
    }

    /**
     * 查询值班表列表
     *
     * @param eampDutyList 值班表
     * @return 值班表
     */
    @Override
    public List<EampDutyList> selectEampDutyListList(EampDutyList eampDutyList)
    {

        return eampDutyListMapper.selectEampDutyListList(eampDutyList);
    }

    /**
     * 新增值班表
     *
     * @param eampDutyList 值班表
     * @return 结果
     */
    @Override
    public int insertEampDutyList(EampDutyList eampDutyList)
    {
        return eampDutyListMapper.insertEampDutyList(eampDutyList);
    }

    /**
     * 修改值班表
     *
     * @param eampDutyList 值班表
     * @return 结果
     */
    @Override
    public int updateEampDutyList(EampDutyList eampDutyList)
    {
        return eampDutyListMapper.updateEampDutyList(eampDutyList);
    }

    /**
     * 批量删除值班表
     *
     * @param dutyIds 需要删除的值班表主键
     * @return 结果
     */
    @Override
    public int deleteEampDutyListByDutyIds(Long[] dutyIds)
    {
        return eampDutyListMapper.deleteEampDutyListByDutyIds(dutyIds);
    }

    /**
     * 删除值班表信息
     *
     * @param dutyId 值班表主键
     * @return 结果
     */
    @Override
    public int deleteEampDutyListByDutyId(Long dutyId)
    {
        return eampDutyListMapper.deleteEampDutyListByDutyId(dutyId);
    }

    @Override
    public List<ListAndManageVO> selectEampDutyListLista(ListAndManageVO listAndManageVO) {
        return eampDutyListMapper.selectEampDutyListLista(listAndManageVO);
    }

    @Override
    public List<DutyVo> getDutylist(List<Long>  dutyIdList) {
        return eampDutyListMapper.getDutylist(dutyIdList);
    }

    @Override
    public List<EampDutyList> getListDuty(DutyVo dutyVo) {
        return eampDutyListMapper.getListDuty(dutyVo);
    }
}
